/**
 * Created by Administrator on 2017/10/19.
 */
import React from 'react';
import ImgBack from 'assets/img/back.png';
import css from './index.less';

export default class Back extends React.Component {

  onBackClick() {
    // window.history.back();
    if (this.props.shouye) {
      Tida.popWindow();
      return;
    }
    this.props.history.goBack();

  }


  render() {
    return (
    <div className={css.img}>
      <img src={ImgBack} onClick={() => {
        this.onBackClick();
      }} />
    </div>


    );
  }
}
